package com.ly.action;


import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;

import com.ly.Annotation.Controller;
import com.ly.Annotation.RequestMapping;

@Controller("/annoAction")
public class annoAction extends Action{
	
	@RequestMapping("/servletOne")
	public String servletOne(HttpServletRequest request) throws UnsupportedEncodingException{
		request.setCharacterEncoding("UTF-8");
		String name = request.getParameter("name");
		if(name.equals("liyu")){
			return "/view/chengong.jsp";
		}else{
			return "/view/shibai.jsp";
		}
		
	}

	public void url(){}
	

}
